package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Raporty extends DziennikMainActivity {
	
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
	        setContentView(R.layout.activity_raports);
	    
	        final Button button_procent_realizacji_makroskladnikow = (Button) findViewById(R.id.buttonRaporty1);
	        button_procent_realizacji_makroskladnikow.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, ProcentRealizacjiMakroskladnikow.class);
					startActivity(intent);
				}
				
			});
	        
	        final Button button_procent_skladnika_w_diecie = (Button) findViewById(R.id.buttonRaporty2);
	        button_procent_skladnika_w_diecie.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, ProcentSkladnikaWDiecie.class);
					startActivity(intent);
				}
				
			});
	        
	        
	        final Button button_stosunek_kalorii = (Button) findViewById(R.id.buttonRaporty3);
	        button_stosunek_kalorii.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, StosunekKalorii.class);
					startActivity(intent);
				}
				
			});
	        
	        final Button button_realizacja_norm = (Button) findViewById(R.id.buttonRaporty4);
	        button_realizacja_norm .setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, RealizacjaNorm.class);
					startActivity(intent);
				}
				
			});
	        
	        
	        final Button button_stosunek_bialek = (Button) findViewById(R.id.buttonRaporty5);
	        button_stosunek_bialek.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, StosunekBialek.class);
					startActivity(intent);
				}
				
			});
	        
	      
	        
	        final Button button_stosunek_kwasow = (Button) findViewById(R.id.buttonRaporty6);
	        button_stosunek_kwasow.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, StosunekKwasow.class);
					startActivity(intent);
				}
				
			});
	        
	        final Button button_stosunek_weglowodanow = (Button) findViewById(R.id.buttonRaporty7);
	        button_stosunek_weglowodanow.setOnClickListener(new View.OnClickListener() {
				public void onClick(View v) {

					Intent intent = new Intent(Raporty.this, StosunekWeglowodanow.class);
					startActivity(intent);
				}
				
			});
	 
		
	 }

}
